export declare type loglevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal'

// 这类弹窗有和日志器一样的等级，需要指定等级、标题、文本，仅用于消息提示
export declare type PopupLoggerUnitDescriptor = {
  class: 'logger'
  level: loglevel
  title: string
  text: string
}

export declare type PopupDialogueUnitDescriptor = {
  class: 'dialogue'
  title: string
  text: string
  options: Record<string, Function>
}

export declare type PopupUnit = PopupLoggerUnitDescriptor | PopupDialogueUnitDescriptor
export declare type PopupRecords = Map<string, PopupUnit>
